package com.itheima.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.common.R;
import com.itheima.domain.Dish;
import com.itheima.domain.vo.DishVo;

import java.util.List;

public interface DishService extends IService<Dish> {

    public R<String> adminDishSave(DishVo dishVo);

    public R<Page<Dish>> adminPageSelect(String name, Integer page, Integer pageSize);

    public R<DishVo> adminSelectDishById(String id);

    public R<String> adminUpdateDish(DishVo dishVo);

    public R<String> adminDishDelete(List<String> ids);

    public R<String> adminDishStatus(List<String> ids, Integer status);

    public R<List<Dish>> adminCategoryList(String categoryId,String name );

    public R<List<DishVo>> clientCategoryList(String categoryId,  String status );
}
